<html>

<head>
	<script>
		function getCookieValue(ckName) {
			var name = ckName + "=";
			var ckList = document.cookie.split(';');
			for (var i = 0; i < ckList.length; i++) {
				var c = ckList[i].trim();
				if (c.indexOf(name) == 0) {
					return c.substring(name.length, c.length);
				}
			}
			return "";
		}

		function showInfo() {
			var count = getCookieValue("count");
			var totcount = getCookieValue("totcount");
			if (count != "" && totcount != "") {
				var info = "本页面第" + count + "次访问，全站第" + totcount + "次访问"
				document.getElementById("info").innerText = info

			}
		}
	</script>
</head>

<body onload="showInfo()" οnunlοad=""></body>
<h1 id="info"></h1>

</html>